<!DOCTYPE html>
<#assign secSelect = JspTaglibs["http://www.casic304.cn/secSelect"] />
<html>
<head>
    <meta charset="utf-8">
    <title>飞行试验奖惩管理基本信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/iconfont/iconfont.css"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/style/qbdms.css">
    <script type="text/javascript">
        var __ctx = "${ctx}";
    </script>
    <style>
        .layui-table th{
            background: #fbfcfe;color: #606266
        }
        .layui-table th{
            border: 1px solid #E5F0FF;
        }
    </style>
</head>
<body>
<body class="listBody">
<div class="qbdms-bodyDiv">
    <div class="layui-table-view-body qbdms-add-view-body">
        <form class="layui-form"  requrl="${ctx}/qbdms/wQbdFlightJc/get" lay-filter="wQbdFlightJcDataForm" id="wQbdFlightJcDataForm">
            <div class="qbdms-formTitle">飞行试验奖惩计划编审记录<i class="qbdms-returnOn closeWindow">返回</i></div>
            <div style="height: 100%;overflow-y: auto;">
                <table class="layui-table qbdms-zeroTable" style="margin: 0;min-width: 1011px;" id="bsjl">
                    <thead>
                        <tr  class="temSpace" request="template/table">
                            <th  class="dragInfo temSpace "  style="text-align: right" rowspan="1" colspan="1">数据项</th>
                            <th class="dragInfo temSpace "  style="min-width: 400px"rowspan="1" colspan="1">编审后</th>
                            <th class="dragInfo temSpace "  style="min-width: 400px" rowspan="1" colspan="1">编审前</th>
                        </tr>
                    </thead>
                    <tbody request="template/table">

                        <tr  class="temSpace" request="template/table">
                            <td class="dragInfo temSpace qbdms-zeroTable-lable" rowspan="1" colspan="1">密级</td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                <!--                            <select  lay-verify="required" name="secret"   flay-search=""></select>-->
                                ${data.secret}

                            </td>
                            <td class="dragInfo temSpace " rowspan="1" colspan="1">
                                ${rewardsProject.secret}
                            </td>
                        </tr>
                        <tr  class="temSpace" request="template/table">
                            <td class="dragInfo temSpace qbdms-zeroTable-lable" rowspan="1" colspan="1">项目主管部门</td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                <!--                            <select  lay-verify="required" name="zgbm"   lay-search=""></select>-->
                                ${data.zgbm}
                            </td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                ${rewardsProject.projectdepartment}
                            </td>
                        </tr>
                        <tr  class="temSpace" request="template/table">
                            <td class="dragInfo temSpace qbdms-zeroTable-lable" rowspan="1" colspan="1">年度</td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                <!--                            <input lay-verify="required" type="text" name="nd"  placeholder="请输入"-->
                                <!--                                   autocomplete="off" class="layui-input dateTimeFiled time-init year" maxlength="50" fieldname="nd" disabled="disabled">-->
                                ${(data.nd?string('yyyy'))!}
                            </td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                ${(rewardsProject.year?string('yyyy'))!}
                            </td>
                        </tr>
                        <tr  class="temSpace" request="template/table">
                            <td class="dragInfo temSpac qbdms-zeroTable-lable" rowspan="1" colspan="1">型号名称</td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                <!--                            <select id="xhmc" lay-verify="required" name="xhmc"   lay-filter="xhmc" lay-search=""></select>-->
                                ${data.xhmc}
                            </td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                ${rewardsProject.modelname}
                            </td>
                        </tr>
                        <tr  class="temSpace" request="template/table">
                            <td class="dragInfo temSpace qbdms-zeroTable-lable" rowspan="1" colspan="1">总体单位名称</td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                <!--                            <select  lay-verify="required" name="ztswmc"   lay-search=""></select>-->
                                ${data.ztswmc}
                            </td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                ${rewardsProject.totalityunitname}
                            </td>
                        </tr>
                        <tr  class="temSpace" request="template/table">
                            <td class="dragInfo temSpace qbdms-zeroTable-lable" rowspan="1" colspan="1">项目类型</td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                <!--                            <select  lay-verify="required" name="xmlx"   lay-search=""></select>-->
                                ${data.xmlx}
                            </td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                ${rewardsProject.projecttype}
                            </td>
                        </tr>
                        <tr  class="temSpace" request="template/table">
                            <td class="dragInfo temSpace qbdms-zeroTable-lable" rowspan="1" colspan="1">项目类别</td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                <!--                            <select  lay-verify="required" name="xmlb"   lay-search=""></select>-->
                                ${data.xmlb}
                            </td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                ${rewardsProject.projectcategory}
                            </td>
                        </tr>
                        <tr  class="temSpace" request="template/table">
                            <td class="dragInfo temSpace qbdms-zeroTable-lable" rowspan="1" colspan="1">项目阶段</td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                <!--                            <select  lay-verify="required" name="xmjd"   lay-search=""></select>-->
                                ${data.xmjd}
                            </td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                ${rewardsProject.projectstage}
                            </td>
                        </tr>
                        <tr  class="temSpace" request="template/table">
                            <td class="dragInfo temSpace qbdms-zeroTable-lable" rowspan="1" colspan="1">飞行试验名称</td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                <!--                            <input  lay-verify="required" type="text" name="fxsymc"  placeholder="请输入"-->
                                <!--                                    autocomplete="off" class="layui-input " maxlength="50" fieldname="fxsymc">-->
                                ${data.fxsymc}
                            </td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                ${rewardsProject.flighttestname}
                            </td>
                        </tr>
                        <tr  class="temSpace" request="template/table">
                            <td class="dragInfo temSpace qbdms-zeroTable-lable" rowspan="1" colspan="1">初始奖励额度（万元）</td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                <!--                            <input lay-verify="required" type="text" name="csjled"  placeholder="请输入"-->
                                <!--                                   autocomplete="off" class="layui-input " maxlength="50" fieldname="csjled" onkeyup="checkJE(this)"-->
                                <!--                            >-->
                                ${data.csjled}
                            </td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                ${rewardsProject.bonusgiven}
                            </td>
                        </tr>
                        <tr  class="temSpace" request="template/table">
                            <td class="dragInfo temSpace qbdms-zeroTable-lable" rowspan="1" colspan="1">初始处罚额度（万元）</td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                <!--                            <input lay-verify="required" type="text" name="cscfed"  placeholder="请输入"-->
                                <!--                                   autocomplete="off" class="layui-input " maxlength="50" fieldname="cscfed" onkeyup="checkJE(this)">-->
                                ${data.cscfed}
                            </td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                ${rewardsProject.penaltyamount}
                            </td>
                        </tr>
                        <tr  class="temSpace" request="template/table">
                            <td class="dragInfo temSpace qbdms-zeroTable-lable" rowspan="1" colspan="1">产品价格（参考值）（万元）</td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                <!--                            <input lay-verify="required" type="text" name="cpjg"  placeholder="请输入"-->
                                <!--                                   autocomplete="off" class="layui-input " maxlength="50" fieldname="cpjg" onkeyup="checkJE(this)">-->
                                ${data.cpjg}
                            </td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                ${rewardsProject.productprice}
                            </td>
                        </tr>
                        <tr  class="temSpace" request="template/table">
                            <td class="dragInfo temSpace qbdms-zeroTable-lable" rowspan="1" colspan="1">P值</td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                <!--                            <input lay-verify="required" type="text" name="pz"  placeholder="请输入P值"-->
                                <!--                                   autocomplete="off" class="layui-input " maxlength="50" fieldname="pz"  onblur="sumJE(this)" onkeyup="checkJE(this)" >-->
                                ${data.pz}
                            </td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">--</td>
                        </tr>
                        <tr  class="temSpace" request="template/table">
                            <td class="dragInfo temSpace qbdms-zeroTable-lable" rowspan="1" colspan="1">计划奖励总额度（万元）</td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                <!--                            <input lay-verify="required" type="text" name="jhjlzed"  placeholder="请输入"-->
                                <!--                                   autocomplete="off" class="layui-input " maxlength="50" fieldname="jhjlzed" onkeyup="checkJE(this)" disabled  >-->
                                ${data.jhjlzed}
                            </td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">--</td>
                        </tr>
                        <tr  class="temSpace" request="template/table">
                            <td class="dragInfo temSpace qbdms-zeroTable-lable" rowspan="1" colspan="1">计划处罚总额度（万元）</td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                <!--                            <input lay-verify="required" type="text" name="jhcfzed"  placeholder="请输入"-->
                                <!--                                   autocomplete="off" class="layui-input " maxlength="50" fieldname="jhcfzed" onkeyup="checkJE(this)" disabled >-->
                                ${data.jhcfzed}
                            </td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">--</td>
                        </tr>
                        <tr  class="temSpace" request="template/table">
                            <td class="dragInfo temSpace qbdms-zeroTable-lable" rowspan="1" colspan="1">奖励工资总额合计（万元）</td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                <!--                            <input lay-verify="required" type="text" name="jlgzzehj"  placeholder="请输入"-->
                                <!--                                   autocomplete="off" class="layui-input " maxlength="50" fieldname="jlgzzehj" onkeyup="checkJE(this)"disabled>-->
                                ${data.jlgzzehj}
                            </td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">--</td>
                        </tr>
                        <tr  class="temSpace" request="template/table">
                            <td class="dragInfo temSpace qbdms-zeroTable-lable" rowspan="1" colspan="1">减免利润上缴合计（万元）</td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                <!--                            <input lay-verify="required" type="text" name="jmlrsjhj"  placeholder="请输入"-->
                                <!--                                   autocomplete="off" class="layui-input " maxlength="50" fieldname="jmlrsjhj" onkeyup="checkJE(this)" disabled>-->
                                ${data.jmlrsjhj}
                            </td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">--</td>
                        </tr>
                        <tr  class="temSpace" request="template/table">
                            <td class="dragInfo temSpace qbdms-zeroTable-lable" rowspan="1" colspan="1">备注</td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">
                                <!--                            <input type="text" name="bz"  placeholder="请输入"-->
                                <!--                                   autocomplete="off" class="layui-input " maxlength="50" fieldname="bz">-->
                                ${data.bz}
                            </td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">--</td>
                        </tr>
                        <tr>
                            <td colspan="3" align="center" class="qbdms-zeroTable-lable" style="text-align: center">
                                奖惩金额分配编审记录
                            </td>
                        </tr>
                        <tr  class="temSpace" request="template/table">
                            <td class="dragInfo temSpace qbdms-zeroTable-lable" rowspan="1" colspan="1">数据项</td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">编审后</td>
                            <td class="dragInfo temSpace" rowspan="1" colspan="1">编审前</td>
                        </tr>



                        <#list c as va>
                        <!--                       ${value!''}-->

                        <tr>
                            <td class="qbdms-zeroTable-lable">奖励单位名称</td>
                            <td>
                                ${va.jlswmc}
                            </td>
                            <td>${va.rewardsUnitName} </td>
                        </tr>
                        <tr>
                            <td  class="qbdms-zeroTable-lable">单位类别</td>
                            <td>${va.swlb}</td>
                            <td>${va.unitCategory}</td>
                        </tr>
                        <tr>
                            <td  class="qbdms-zeroTable-lable">分配比例</td>
                            <td>${va.fpbl}</td>
                            <td>${va.rewardsAllocationProportion}</td>
                        </tr>
                        <tr>
                            <td  class="qbdms-zeroTable-lable">计划最高奖励额度（万元）</td>
                            <td>${va.jhzgjled}</td>
                            <td>--</td>
                        </tr>
                        <tr>
                            <td  class="qbdms-zeroTable-lable">计划最高处罚额度（万元）</td>
                            <td>${va.jhzgcfed}</td>
                            <td>--</td>
                        </tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">奖励工资总额合计（万元）</td>
                            <td>${va.jlgzzehj}</td>
                            <td>--</td>
                        </tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">减免利润上缴合计（万元）</td>
                            <td>${va.jmlrsjhj}</td>
                            <td>--</td>
                        </tr>
                        <!--                    ${value.jlswmc}-->
                        </#list>
                    </tbody>
                </table>
            </div>
            <div class="layui-form-item btnformItem">
                <p>
                    <button type="reset" id="closeWindow"
                            class="layui-btn layui-btn-sm btn-save qbdms-oneBtnLine">取消
                    </button>
                </p>
            </div>
        </form>
    </div>
</div>


<script src="${ctx}/qbdmsStatic/public/configFile.js"></script>
<script src="${ctx}/layui/layui.js"></script>
<script>
    layui.config({
        base: serverPath.qbdmsPath + staticPath.qbdmsPath //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'layer','table','common', 'jquery'], function () {
        // -----常量声明----------
        var $ = layui.jquery;
        var common = layui.common;
        //关闭当前页面
        $("#closeWindow,.closeWindow").click(function () {
            window.location.href = serverPath.qbdmsPath + '/qbdms/wQbdFlightJc/view/list';
        });
        common.updateForm({
            name: 'wQbdFlightJcDataForm',
            idValue: "${id}",
            primary: "id",
            getCallback: function(data) {
                $("#bsjl").each(function (index) {
                    var tr=$(this).find('tr');
                    tr.not(tr[0]).each(function (index) {
                         var t1= $(this).children('td').eq(1).text().toString().trim();
                            var t2= $(this).children('td').eq(2).text().toString().trim();
                         if(t1!=t2){
                                $(this).children('td').eq(1).css("color","red");
                                if(t2!="--"){
                                    $(this).children('td').eq(2).css("color","red");
                                }
                            }
                     })
               })
            }
        });
    });
</script>
</body>
</html>